/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.mes.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 项目信息实体类
 *
 * @author BladeX
 * @since 2020-09-04
 */
@Data
@TableName("prj_project_info")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ProjectInfo对象", description = "项目信息")
public class ProjectInfo extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 潜在项目id
	 */
	@ApiModelProperty(value = "潜在项目id")
	private Long potentialProjectId;
	/**
	* 潜在项目编号
	*/
		@ApiModelProperty(value = "潜在项目编号")
		private String potentialProjectNo;
	/**
	* 潜在项目名称
	*/
		@ApiModelProperty(value = "潜在项目名称")
		private String potentialProjectName;
	/**
	* 项目编号
	*/
		@ApiModelProperty(value = "项目编号")
		private String projectNo;
	/**
	* 项目名称
	*/
		@ApiModelProperty(value = "项目名称")
		private String projectName;
	/**
	* 主机型编码
	*/
		@ApiModelProperty(value = "主机型编码")
		private String modelNo;
	/**
	* 项目类型
	*/
		@ApiModelProperty(value = "项目类型")
		private String projectType;
	/**
	* 项目描述
	*/
		@ApiModelProperty(value = "项目描述")
		private String projectDescription;
	/**
	* 客户编码
	*/
		@ApiModelProperty(value = "客户编码")
		private String customerNo;
	/**
	 * 客户名称
 	 */
		private String customerName;
	/**
	* 项目负责人
	*/
		@ApiModelProperty(value = "项目负责人")
		private String projectManager;

	/**
	 * 项目负责人id
	 */
		@ApiModelProperty(value = "项目负责人id")
		private String projectManagerId;
	/**
	 * 项目负责人
	 */
	@ApiModelProperty(value = "项目负责人名称")
	@TableField(exist = false)
	private String projectManagerName;
	/**
	* 合同编号
	*/
		@ApiModelProperty(value = "合同编号")
		private String contractNumber;
	/**
	* 计划开始日期
	*/
		@ApiModelProperty(value = "计划开始日期")
		@DateTimeFormat(
				pattern = "yyyy-MM-dd"
		)
		@JsonFormat(
				pattern = "yyyy-MM-dd"
		)
		private Date planStartDate;
	/**
	* 计划完成日期
	*/
		@ApiModelProperty(value = "计划完成日期")
		@DateTimeFormat(
				pattern = "yyyy-MM-dd"
		)
		@JsonFormat(
				pattern = "yyyy-MM-dd"
		)
		private Date planEndDate;
	/**
	* 实际启动日期
	*/
		@ApiModelProperty(value = "实际启动日期")
		@DateTimeFormat(
				pattern = "yyyy-MM-dd"
		)
		@JsonFormat(
				pattern = "yyyy-MM-dd"
		)
		private Date actualStartDate;
	/**
	* 实际结束日期
	*/
		@DateTimeFormat(
				pattern = "yyyy-MM-dd"
		)
		@JsonFormat(
				pattern = "yyyy-MM-dd"
		)
		@ApiModelProperty(value = "实际结束日期")
		private Date actualEndDate;
	/**
	* 运行状态：延期；正常；预警
	*/
		@ApiModelProperty(value = "运行状态：延期；正常；预警")
		private String runStatus;
	/**
	* 最后变更日期
	*/
	@DateTimeFormat(
			pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
			pattern = "yyyy-MM-dd HH:mm:ss"
	)
		@ApiModelProperty(value = "最后变更日期")
		private Date lastChangeDate;
	/**
	* 变更人
	*/
		@ApiModelProperty(value = "变更人")
		private String changeUser;
	/**
	* 变更原因
	*/
		@ApiModelProperty(value = "变更原因")
		private String changeReason;
	/**
	* 备注
	*/
		@ApiModelProperty(value = "备注")
		private String remarks;

		@ApiModelProperty(value = "1我的项目")
		@TableField(exist = false)
		private String myProject;

	@ApiModelProperty(value = "项目组成员确认1未确认2已确认，默认1")
	@JsonSerialize(nullsUsing = NullSerializer.class,using = ToStringSerializer.class)
	private Integer projectMemberComplete;

	@ApiModelProperty(value = "项目模板id")
	@JsonSerialize(nullsUsing = NullSerializer.class,using = ToStringSerializer.class)
	private Long projectTmplId;

	/**
	 * 是否确认1未确认2已确认，默认1
	 */
	@ApiModelProperty(value = "是否确认")
	@JsonSerialize(nullsUsing = NullSerializer.class,using = ToStringSerializer.class)
	private Integer isComplete;
	/**
	 * 流程实例id
	 */
	@ApiModelProperty(value = "流程实例id")
	private String processInstanceId;
	/**
	 * 流程定义id
	 */
	@ApiModelProperty(value = "流程定义id")
	private String processDefinitionId;
}
